package com.shengdong.water.code.bean

data class TreeNode(
    val label: String,
    val type: NodeType,
    val children: MutableList<TreeNode>? = null,
    val value: String? = null,
    var isExpanded: Boolean = false,
    var level: Int = 0,
    var viewType: Int = VIEW_TYPE_PARENT
)

data class ChildrenBean (
    val label: String,
    val children: MutableList<ChildrenBean>
)

enum class NodeType {
    PARENT,
    VIDEO
}

// 定义视图类型常量
const val VIEW_TYPE_PARENT = 0
const val VIEW_TYPE_VIDEO = 1
